package samsung.sds.survey.surveyManagement.service;

import samsung.sds.survey.surveyManagement.model.SurveyEntity;
import samsung.sds.system.common.baseQuery.BaseServiceInterface;

/**
 *  @author deng1.pan
 *  @createDate 2016-01-08
 *  
 *  问卷管理模块的service接口
 */
public interface SurveyManagementService extends BaseServiceInterface<SurveyEntity> {
	
	/**
	 * 停止投票
	 * @param survey
	 * @return
	 */
	public int stopVote(SurveyEntity survey);
	
	/**
	 * 定时更新问卷状态
	 * @param status
	 */
	public void updateSurveyStatusTask(String status);
	
	/**
	 * 删除包含question的问卷
	 * @param surveyId
	 */
	public String deleteSurvey(String id);
	
	/**
	 * 根据调查ID获取调查信息
	 * 
	 * @param survey_Id
	 * @return
	 */
	public SurveyEntity getSurveyInfo(String survey_Id);
	
	/**
	 * 复制插入新调查问卷问题
	 * @param surveyIdOld
	 * @param create_User 
	 * @param survey
	 * @return
	 */
	public boolean copyQuestion(String surveyIdOld, String surveyIdNew, String create_User);
	
}
